package charatr04.example;
interface Animal12 {
    public String NAME = "牧羊犬";
    public void shout();
    public void info();
}
abstract class Action12{
    public abstract void eat();
}
class Dog12 extends Action12 implements Animal12{
    public void eat() {
        System.out.println("喜欢吃骨头");
    }
    public void shout() {
        System.out.println("汪汪...");
    }
    public void info(){
        System.out.println("名称:"+NAME);
    }
}
public class Example12 {
    public static void main(String[] args) {
        Dog12 dog = new Dog12();
        dog.info();
        dog.shout();
        dog.eat();
    }
}
